<script type="text/javascript" language="javascript" src="http://vnexpress.net/Library/Common/Library.js"></script>
<script type="text/javascript" language="javascript" src="http://vnexpress.net/Library/Common/Vne.js"></script>
<script type="text/javascript" language="javascript" src="http://vnexpress.net/Service/Forex_Content.js"></script>
<script type="text/javascript" src="http://gala.news.zing.vn/util/service/weather.js"></script>
<link rel="stylesheet" href="http://vnexpress.net/Resource/Common/default1.css" type="text/css" />
<style type="text/css">
.td-weather-title {width:100px;background-color:none;}
.td-weather-data {background-color:none;}
.forex-rate {height:78px; width:158px; overflow-y:scroll; overflow-x:hidden;}
.forex-rate {margin:5px 0px; padding:8px; width:100px;}
.slt-weather {width:110px; height:20px; padding: 2px; font:11px arial; border:0; border-top:1px solid #9d9da1; border-right:1px solid #9d9da1; border-bottom:1px solid #9d9da1;}
.img-weather {vertical-align:middle;}
.fl, #header, #topmenu, #content, #footer, #topnews {
	float:left;
	padding: 0px 8px 0px 10px;
}
.td-weather-title {
	width:40px;
	}
/*.tbl-weather {background-color:none;font:11px arial;width:110px;}*/
</style>		 
<script>
	var tpWeather;
	function change(tentp,nhietdo,anh,thoitiet,doam,gio)
	{
		document.getElementById("ttNhietDo").innerHTML=nhietdo;
		document.getElementById("ttAnh").innerHTML='<img src="http://www.zing.vn/news/images/weather/'+ anh.toLowerCase().replace(/_/g, "-") +'" />';
		document.getElementById("ttThoitiet").innerHTML=thoitiet+'<br />Độ ẩm: '+doam+'<br />'+gio;
	}
	function ShowWeatherBox(intVal)
	{
		change(weather[intVal][1],weather[intVal][2],weather[intVal][3],weather[intVal][4],weather[intVal][5],weather[intVal][6]);
	}
	function ShowWeather()
	{
		var strcboWeather='';
		for(var i = 0;i < weather.length; i++)
		{
			if(weather[i][0]=='tphanoi') tpWeather = i;
			strcboWeather+='<option value="'+i+'"'+(weather[i][0]=='tphanoi'?' selected="selected"':'')+'>'+weather[i][1]+'</option>';
		}
	  	document.getElementById("cboWeather").innerHTML= strcboWeather;
	};

</script> 

<div class="box box_margin" style="width:302px;background:#FFFFFF;">
            <div class="vietnam_info">
                 <div class="vietnam_info_title">&nbsp;&nbsp;<?=t(175)?></div>
           		 <div class="clear"></div>
                 <div class="vietnam_info_content" style="padding:0 0 25px 0;">
                    	 <div class="goldprice fl">
								<div class="fl"><img class="img-icon" src="http://vnexpress.net/Images/circle-chart.gif" alt="" />&nbsp;&nbsp;<label class="link-folder"><?=t(176)?></label></div>
								<div id="eForex" class="forex-rate fl">&nbsp;</div>
								<div class="fl" style="padding:5px;"><label style="font:italic 10px arial; color:#05324f;">(<?=t(177)?>:<a href="http://www.eximbank.com.vn" target="_blank"><img  style="border:0px;vertical-align:middle" src="http://vnexpress.net/Images/logo-EXIM.gif" /></a>)</label></div>				
						</div>
						<script type="text/javascript" language="javascript">$(document).ready(function(){ShowForexRate();});</script>
           		 </div>
            </div>
            <div class="vietnam_info">
                  <div class="vietnam_info_title">&nbsp;&nbsp;<?=t(174)?></div>
           		 <div class="clear"></div>
                 <div class="vietnam_info_content">
                 
                  <div class="fl"><img class="img-icon" src="http://vnexpress.net/Images/cloud.gif" alt="" />&nbsp;&nbsp;<label class="link-folder"><?=t(174)?></label></div>                                
						<div class="fl">
							<form id="frmWeather" method="post" action="#">
								<select id="cboWeather" class="ttfontselect" onchange="ShowWeatherBox(this.value);" name="weather" style="width: 120px;">
									<script>
									var strcboWeather='';
									for(var i = 0;i < weather.length; i++)
									{
										if(weather[i][0] == 'tphanoi') tpWeather = i;
											strcboWeather += '<option value="'+i+'"'+(weather[i][0]=='tphanoi'?' selected="selected"':'')+'>'+weather[i][1]+'</option>';
									}
									document.write(strcboWeather)
									</script>
								</select>
								<div class="box-middle1 box-weather fl" style="width:140px;">
									<div class="weather fl" style="width:130px;padding:0 1px; margin: 0;">
										<table cellspacing="0" cellpadding="0" border="0" width="132" style="margin-bottom: 2px;margin-right: 2px;" align="left">
											   <script type="text/javascript" language="javascript">$(document).ready(function(){ShowWeatherBox(4);});</script>     
											  <tr>
													<td width="40" id="ttNhietDo" class="ttNhietdo" align="right" style="font-size:15px;font-weight:bold;"> </td>
													<td width="80" align="left" id="ttAnh" style="padding-top: 2px; padding-bottom: 4px;"> </td>
													
											  </tr>
											   <tr>
													<td height="65" colspan="2" id="ttThoitiet" class="ttfont" style="padding-bottom: 4px;"> </td>
											  </tr>
										</table>
									</div>
									<script type="text/javascript" language="javascript">$(document).ready(function(){ShowWeatherBox(4);});</script>
								</div>
							</form>
                     </div> 
            </div>
         </div>
         
         <div class="clear"></div>
            <div class="box box_margin" style="width:302px;background:#FFFFFF;">
                  <div class="vietnam_title">&nbsp;&nbsp;&nbsp;<?=t(159)?></div>
           		 <div class="clear"></div>
                 <div class="vietnam_content_right" align="left">
                   <div class="vietnam_info" style="padding:20px 0;">  <a href="#"><img src="/public/themes/hard/images/vietnam_phone.jpg" align="middle" /></a><br /><br />
                   <div class="vietnam_title_contact"><a href="#">contact@gomevietnam.com</a></div>
                   </div>
                   <div class="vietnam_info" style="padding:20px 0;"> 
                   
                   &nbsp;&nbsp;
                     <? $query=file('http://opi.yahoo.com/online?u='.$this->viewParams['onYahoo'].'&m=t'); ?>
                     	 <? if (strpos($query[0],"NOT ONLINE")==0) :?>
					    		<a class="ym" href="ymsgr:sendim?<?=$this->viewParams['onYahoo']?>" ><img src="/public/themes/hard/images/vietnam_yahoo.jpg" align="absmiddle"></img> </a>
						    <?else:?>
						 		<a class="ym" href="ymsgr:sendim?<?=$this->viewParams['onYahoo']?>" ><img src="/public/themes/hard/images/vietnam_yahoo_off.jpg" align="absmiddle"></img></a>
						  <?endif?>  
                   &nbsp;&nbsp;&nbsp;
                    	 <? 
                               $file_net = file('http://mystatus.skype.com/'.$this->viewParams['onSkype'].'.num');
					    	?>	
					    	<? if($file_net[0] == 1) :?>
				    		<a class="ym" href="skype:<?=$this->viewParams['onSkype']?>?chat" ><img src="/public/themes/hard/images/vietnam_skype_off.jpg" align="absmiddle"></img> </a>
				    	  <?else:?>
							<a class="ym" href="skype:<?=$this->viewParams['onSkype']?>?chat" ><img src="/public/themes/hard/images/vietnam_skype.jpg" align="absmiddle"></img> </a>
				    	  <?endif?>		
	                   
                   </div>
                 </div>
         </div>
